using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using org.qsoft.rpcfx.core;
using org.qsoft.rpcfx.bean;
using org.qsoft.rpcfx.util;
using org.qsoft.rpcfx.common;

namespace org.qsoft.rpcfx.web
{
    public class RpcfxHandler : IHttpHandler
    {
        public void ProcessRequest(System.Web.HttpContext context)
        {
            string param = context.Request["param"];
            string s = InvokeUtil.invoke(param);

            context.Response.ContentType ="text/xml";
            context.Response.Write(s);
            context.Response.End();
        }

        public bool IsReusable
        {
            get { return true; }
        }

    }
}
